package com.example.framework.security.core.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author yuzhenxin1
 * @date 2024-02-02
 * @description 登录返回双Token
 */
@Accessors(chain = true)
@Data
public class JwtTokenRespDto {

    @Schema(title = "jwt token")
    private String accessToken;

    @Schema(title = "accessToken 有效时长，单位秒")
    private Long accessTokenExpiresIn;

    @Schema(title = "刷新token")
    private String refreshToken;

    @Schema(title = "refreshToken 有效时长，单位秒")
    private Long refreshTokenExpiresIn;

}
